package com.ys.tdm.service.doc;

import java.util.List;

import com.ys.tdm.bean.doc.Doc;
import com.ys.tdm.util.PagerModel;
import com.ys.tdm.util.Query;




/**
 * 模块信息Service接口
 * @author Troy
 * @date 2018-01-02 09:25:58
 */
public interface IDocService {

	/**
	 * 通过id得到模块信息Doc
	 * @param id
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public Doc getDocById(String id) throws Exception;

	/**
	 * 通过ids批量得到模块信息Doc
	 * @param ids 如："'1','2','3','4'..."
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public List<Doc> getDocByIds(String ids) throws Exception;
	
	/**
	 * 通过ids批量得到模块信息Doc
	 * @param ids 
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public List<Doc> getDocByIdsList(List<String> ids) throws Exception;

	/**
	 * 得到所有模块信息Doc
	 * @param doc
	 * @return 
	 * @throws Exception
	 * @Description:
	 */
	public List<Doc> getAll(Doc doc) throws Exception;


	/**
	 * 查询记录数
	 * @param doc
	 * @return
	 * @throws Exception
	 * @Description:
	 */
	public int getByPageCount(Doc doc)throws Exception ;
	
	/**
	 * 添加模块信息Doc
	 * @param doc
	 * @throws Exception
	 * @Description:
	 */
	public void insertDoc(Doc doc) throws Exception;
	
	/**
	 * 批量添加模块信息Doc
	 * @param docs
	 * @throws Exception
	 * @Description:
	 */
	public void insertDocBatch(List<Doc> docs) throws Exception;

	/**
	 * 通过id删除模块信息Doc
	 * @param id
	 * @throws Exception
	 * @Description:
	 */
	public void delDocById(String id) throws Exception;

	/**
	 * 通过id批量删除模块信息Doc
	 * @param ids 如："'1','2','3','4'..."
	 * @throws Exception
	 * @Description:
	 */
	public void delDocByIds(String ids) throws Exception;
	
	/**
	 * 通过id批量删除模块信息Doc
	 * @param ids 
	 * @throws Exception
	 * @Description:
	 */
	public void delDocByIdsList(List<String> ids) throws Exception;

	/**
	 * 通过id修改模块信息Doc
	 * @param doc
	 * @throws Exception
	 * @Description:
	 */
	public int updateDoc(Doc doc) throws Exception;
	
	/**
	 * 通过ids批量修改模块信息Doc
	 * @param ids 如："'1','2','3','4'..."
	 * @param doc
	 * @throws Exception
	 * @Description:
	 */
	public int updateDocByIds(String ids,Doc doc) throws Exception;
	
	/**
	 * 通过ids批量修改模块信息Doc
	 * @param ids 
	 * @param doc
	 * @throws Exception
	 * @Description:
	 */
	public int updateDocByIdsList(List<String> ids,Doc doc) throws Exception;
	
	/**
	 * 通过id批量修改模块信息Doc
	 * @param docs
	 * @throws Exception
	 * @Description:
	 */
	public int updateDocList(List<Doc> docs) throws Exception;
	
	//------------api------------
}
